package com.df.ez_game.server.logic.status_sync;


import com.df.ez_game.server.EzGameBusinessException;

/**
 * 同步异常类 - 定义状态同步过程中可能出现的异常
 */
public class SyncExceptions {
    // 玩家已存在异常
    public static final EzGameBusinessException playerExist = EzGameBusinessException.create(10001, "玩家已存在");
    
    // 玩家不存在异常
    public static final EzGameBusinessException playerNotExist = EzGameBusinessException.create(10002, "玩家不存在");
    
    // 地图不存在异常
    public static final EzGameBusinessException mapNotExist = EzGameBusinessException.create(10003, "地图不存在");
    
    // 命令执行失败异常
    public static final EzGameBusinessException commandExecuteFailed = EzGameBusinessException.create(10004, "命令执行失败");
    
    // 命令类型不支持异常
    public static final EzGameBusinessException unsupportedCommandType = EzGameBusinessException.create(10005, "不支持的命令类型");
    
    // 命令数据不完整异常
    public static final EzGameBusinessException incompleteCommandData = EzGameBusinessException.create(10006, "命令数据不完整");
    
    // 帧号错误异常
    public static final EzGameBusinessException frameError = EzGameBusinessException.create(10007, "帧号错误");
    
    // 同步超时异常
    public static final EzGameBusinessException syncTimeout = EzGameBusinessException.create(10008, "同步超时");
    
    // 并发操作异常
    public static final EzGameBusinessException concurrentOperation = EzGameBusinessException.create(10009, "并发操作冲突");
}